Skip to content

Conversation

@n-srg
Copy link
Collaborator

@n-srg n-srg commented Sep 18, 2025

There are two ways a step in a job may be skipped:

  • Step skipped due to an if: conditional: When a step has an if: condition that evaluates to false, the step is never sent to the runner for execution. In this case, the steps array in the workflow_job webhook payload will show the step, but its conclusion will be null.

For this part we check the step.conclusion and ignore those that are not ran.

  • Step skipped due to a previous step failure: This is the case when the step is marked with conclusion 'skipped'. If a previous step fails, all subsequent steps in the same job are immediately skipped. Their conclusion will be 'skipped'.

For this part we doublecheck the step duration and ignore if it is not set

There are two ways a step in a job may be skipped:

- Step skipped due to an `if:` conditional: When a step has an `if:` condition that evaluates to `false`, the step is never sent to the runner for execution. In this case, the steps array in the workflow_job webhook payload will show the step, but its conclusion will be `null`.

For this part we check the step.conclusion and ignore those that are not ran.

- Step skipped due to a previous `step failure`: This is the case when the step is marked with conclusion 'skipped'. If a previous step fails, all subsequent steps in the same job are immediately skipped. Their conclusion will be 'skipped'.

For this part we doublecheck the step duration and ignore if it is not set
@n-srg n-srg requested a review from a team as a code owner September 18, 2025 10:31
@n-srg n-srg merged commit b696e9c into master Sep 18, 2025
6 checks passed
@n-srg n-srg deleted the skip-step-with-no-conclusion branch September 18, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants